Fix the reporting when this test fails (the eyecatcher variables would not be
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 30 Nov 2005 18:55:09 +0000 (18:55 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 30 Nov 2005 18:55:09 +0000 (18:55 +0000)
created if the domain creation actually succeeded).  Use total_memory not
free_memory to determine how big to make the domain -- when ballooning down of
dom0 works properly, creating a domain larger than free_memory is possible.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/tests/create/06_create_mem_neg.py

index d62dca61ae2a488af7396bfb192e80ddf498224d..187495caa0d0aa15a93d018334764466909c6c3d 100644 (file)
@@ -31,6 +31,7 @@ domain1=XenDomain(opts1)
 
 try:
     domain1.start()
+    eyecatcher1 = "Created"
 except DomainError, e:
     eyecatcher1 = "Fail"
 
@@ -41,7 +42,7 @@ if eyecatcher1 != "Fail":
 
 # Test 2: create a domain with mem>sys_mem
 
-mem = int(getInfo("free_memory"))
+mem = int(getInfo("total_memory"))
 extreme_mem = str(mem + 100)
 
 opts2=  {
@@ -56,6 +57,7 @@ domain2=XenDomain(opts2)
 
 try:
     domain2.start()
+    eyecatcher2 = "Created"
 except DomainError, e:
     eyecatcher2 = "Fail"